package org.unt.db;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;

import org.apache.log4j.Logger;

public class DbBean {

	protected static Logger logger = Logger.getLogger("db");

	protected String dbType = null;
	protected String url = null;
	protected String driver = null;
	protected String user = null;
	protected String pass = null;
	protected String schema = null;

	protected Connection conn = null;

	protected String queryVerification = null;

	protected Statement statement = null;

	protected PreparedStatement prepared = null;

	public String getSchema() {
		return schema;
	}

	public Connection getConn() {
		return conn;
	}

	public String getQueryVerification() {
		return queryVerification;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public void close() throws SQLException {
		conn.close();
	}
}
